package com.zhangshanfeng.file;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileStream04 {
    public static void main(String[] args) {

        //FileOutputStream fos = null;

       /* try {
            fos = new FileOutputStream("day11\\fos.txt");
            fos.write("hello".getBytes());
          //  fos.write(98);
        } catch (IOException e) {
            e.printStackTrace();

        } finally {
            if (fos != null) {
                try {
                    fos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

        }
        */
        File file = new File("day11\\for.txt");
        boolean delete = file.delete();
        System.out.println(delete);


    }
}
